# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=bluelog
pkgver=1.1.2
pkgrel=1
groups=('blackarch' 'blackarch-bluetooth' 'blackarch-scanner')
pkgdesc='A Bluetooth scanner and sniffer written to do a single task, log devices that are in discoverable mode.'
url='http://www.digifail.com/software/bluelog.shtml'
arch=('x86_64' 'aarch64')
license=('GPL2')
depends=('bluez' 'bluez-libs')
makedepends=('wget')
source=("https://dl.packetstormsecurity.net/wireless/$pkgname-$pkgver.tar.gz")
sha512sums=('215e10280ab9859ad1e0442afbe39d4a1b4e1dd2f4a930b81364fe3d2a6e318d46d8afd1f4ea0f1035c742ea6b3a7a92aaeeb2e71b4e3fa0e556f17e70ccb10a')

build () {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README
  install -Dm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

